home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / snmp / kip / doc / stackdump.new < prev    next >
Encoding:
Text File  |  1989-01-17  |  6.1 KB  |  163 lines

  1. Here is a typical continuously dumping stack packet:
  2.  
  3. [B ] S: 220 D: 255
  4.     02 58 44 73 74 61 63 6B 20 64 75 6D 70 00 00 06    XDstack dump    
  5.     3A 00 06 FA 70 20 00 00 00 16 10 00 06 FA 46 20   :   p         F  
  6.     00 00 06 40 2A 00 06 FA 28 00 06 FD C2 00 06 FD      @*   (        
  7.     CC 00 06 F8 00 00 06 DA BE 00 00 00 01 DC 00 00                    
  8.     00 00 7F 00 00 00 00 33 0D 00 00 01 00 00 00 80          3         
  9.     02 38 00 32 38 40 00 00 00 01 00 80 02 0D 0D 32    8 28@         2 
  10.     01 28 01 01 00 01 00 80 02 FE B9 32 FE 28 01 02    (         2 (   
  11.     00 01 00 80 02 DE E0 32 DE 28 01 02 00 01 00 80          2 (       
  12.     02 F2 0A 32 F2 28 01 02 00 01 00 80 02 F1 7C 32      2 (        |2 
  13.     F1 28 01 03 00 01 00 80 02 F8 93 32 F8 28 01 03    (         2 (   
  14.     00 01 00 80 02 EC 81 32 EC 28 01 04 00 01 00 80          2 (       
  15.     02 E7 03 32 E7 28 01 03 00 01 00 80 02 13 2B 32      2 (        +2 
  16.     13 28 01 03 00 01 00 80 02 0D 28 32 0D 28 01 01    (        (2 (   
  17.     00 01 00 80 02 23 4D 32 23 28 01 01 00 01 00 80        #M2#(       
  18.     02 44 01 32 C8 89 01 05 00 01 00 80 02 38 0A 33    D 2         8 3 
  19.     01 98 01 01 00 01 00 80 02 DF 01 33 05 98 01 06              3     
  20.     00 01 00 08 00 89 D0 14 63 00 00 00 00 00 00 00           c        
  21.     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00                    
  22.  
  23.  
  24. Here are the details:
  25.  
  26. 02   58 | 44 | 73   74   61   63   6B   20   64   75   6D   70 | 00   00   06
  27. <- 01 -> <02> <---------------------------- 03 ---------------> <---- 04 ----
  28.  
  29. 3A | 00   06   FA   70 | 20   00 | 00   00   16   10 | 00   06   FA   46 | 20
  30. --> <------ 05 -------> <- 06 --> <------- 07 ------> <------- 08 ------> <09
  31.  
  32. 00 | 00   06   40   2A | 00   06   FA   28 | 00   06   FD   C2 | 00   06   FD
  33. --> <------ 10 -------> <------- 11 ------> <------ 12 -------> <----- 13 ---
  34.  
  35. 01 - data count (plus DDP hop count if this was a long DDP).
  36. 02 - type of Kinetics lap packet: 0x44 = 'D' is the diagnostic type.
  37. 03 - ASCII "stack dump" for stack packet.
  38.  
  39. ****
  40. All addresses that refer to PROM locations or RAM locations
  41. used by the PROM are dependent on the revision level of the PROM.
  42. The following addresses are based on the PROM known by the
  43. version 3.0 and the checksum 6EEC.
  44. ****
  45. 04 - 0x63A is first true stack address: from the PROM, this is
  46.      the return address after the call to the stack packet routine.
  47.      The call is from the routine "nultrap" which is the default
  48.      exception handler used for every type of exception/interrupt
  49.      except specifically the AppleTalk/8530 and the Ethernet chip
  50.      and whatever else might be specifically replaced.
  51. 05 - From the PROM, 0x6FA70 is a return address in the exception vectors
  52.      after the "jsr nultrap" which is also used to indicate which
  53.      exception/interrupt occurred.
  54.      Here is the magic formula:
  55.         The vectors start at 0x6FA28.
  56.         Each vector is 6 bytes, the length of the "jsr nultrap".
  57.         0x6FA70 - 0x6FA28 = 0x48 = 72
  58.         (72. - 6) / 6 = 11.
  59.      Exception vector 11. is the ***********
  60.      I have included a table at the end of this mail which tells all
  61.      in terms of which vectors are used for what.
  62. ***
  63. At this point, the remainder of the stack is interpreted
  64. according to type of exception that occurs. Consult the
  65. Motorola 68000 manual for details.
  66. ***
  67. 06 - 0x2000 is the processor status at the time of the Ethernet interrupt.
  68. 07 - 0x1610 is the interrupted instruction location in the PROM.
  69. Apparently, this exception happened in the middle of a previous exception:
  70. 08 - 0x6FA46 is the return address for the exception "illegal instruction".
  71. 09 - 0x2000  is the processor priority at the time of this exception.
  72. 10 - 0x6402A is the return address from the initial call to "main".
  73. 11 - 0x6FA28 is the first piece of data in the data segment (directly above
  74.      the stack).
  75.  
  76.      Exception Table for PROM 6EEC
  77.      =====================================
  78.  
  79.     6FA3A    |  2: Bus error (long format stack dump)
  80.     6FA40    |  3: Address error (long format stack dump)
  81.     6FA46    |  4: Illegal instruction
  82.     6FA4C    |  5: Zero divide
  83.     6FA52    |  6: CHK instruction
  84.     6FA58    |  7: TRAPV instruction
  85.     6FA5E    |  8: Privilege violation
  86.     6FA64    |  9: Trace
  87.     6FA6A    | 10: Line 1010 emulator
  88.     6FA70    | 11: Line 1111 emulator
  89.     6FA76    | 12: Unused
  90.     6FA7C    | 13: Unused
  91.     6FA82    | 14: Unused
  92.     6FA88    | 15: Unused
  93.     6FA8E    | 16: Level 2 dispatcher
  94.     6FA94    | 17: Unused
  95.     6FA9A    | 18: Unused
  96.     6FAA0    | 19: Unused
  97.     6FAA6    | 20: Unused
  98.     6FAAC    | 21: Unused
  99.     6FAB2    | 22: Unused
  100.     6FAB8    | 23: Unused
  101.     6FABE    | 24: Spurious Interrupt
  102.     6FAC4    | 25: Level 1 Interrupt Autovector
  103.     6FACA    | 26: Level 2 Interrupt Autovector
  104.     6FAD0    | 27: Level 3 Interrupt Autovector
  105.     6FAD6    | 28: Level 4 Interrupt Autovector
  106.     6FADC    | 29: Level 5 Interrupt Autovector
  107.     6FAE2    | 30: Level 6 Interrupt Autovector
  108.     6FAE8    | 31: Level 7 Interrupt Autovector
  109.     6FAEE    | 32: TRAP 00 Instruction Vectors
  110.     6FAF4    | 33: TRAP 01 Instruction Vectors
  111.     6FAFA    | 34: TRAP 02 Instruction Vectors
  112.     6FB00    | 35: TRAP 03 Instruction Vectors
  113.     6FB06    | 36: TRAP 04 Instruction Vectors
  114.     6FB0C    | 37: TRAP 05 Instruction Vectors
  115.     6FB12    | 38: TRAP 06 Instruction Vectors
  116.     6FB18    | 39: TRAP 07 Instruction Vectors
  117.     6FB1E    | 40: TRAP 08 Instruction Vectors
  118.     6FB24    | 41: TRAP 09 Instruction Vectors
  119.     6FB2A    | 42: TRAP 10 Instruction Vectors
  120.     6FB30    | 43: TRAP 11 Instruction Vectors
  121.     6FB36    | 44: TRAP 12 Instruction Vectors
  122.     6FB3C    | 45: TRAP 13 Instruction Vectors
  123.     6FB42    | 46: TRAP 14 Instruction Vectors
  124.     6FB48    | 47: TRAP 15 Instruction Vectors
  125.     6FB4E    | 48: Ethernet service
  126.     6FB54    | 49: Deadman timer service
  127.     6FB5A    | 50: Timeout service
  128.     6FB60    | 51: Applebus service
  129.     6FB66    | 52: Q-bus host service
  130.     6FB6C    | 53: Multibus host service
  131.     6FB72    | 54: Unused
  132.     6FB78    | 55: Unused
  133.     6FB7E    | 56: Unused
  134.     6FB84    | 57: Unused
  135.     6FB8A    | 58: Unused
  136.     6FB90    | 59: Unused
  137.     6FB96    | 60: Unused
  138.     6FB9C    | 61: Unused
  139.     6FBA2    | 62: Unused
  140.     6FBA8    | 63: Unused
  141.  
  142.  
  143. Short Format Stack Dump:
  144. 15               0
  145.   Status Register
  146.   Program Counter High
  147.   Program Counter Low
  148.  
  149. Long Format Stack Dump:
  150. 15            0
  151.   Information word
  152.   Access address high
  153.   Access address low
  154.   Instruction Register
  155.   Status Register
  156.   Program Counter High
  157.   Program Counter Low
  158.  
  159. Of the information word:
  160. bit 3 is 1 if the access was made by an instruction fetch,
  161. bit 4 is 1 if the access was made by a read.
  162.  
  163.